#ifndef DISTANCES_H
#define DISTANCES_H

#include <QList>
#include"points.h"

class Distances
{
public:
    Distances();
    static QList<double> calculateDistances(Points points);
    static QVector< QVector<double> > mapDistancesToPoints(QList<double> distances, int numberOfSamples);
    static QList<double> sortDistances(QList<double> distances);
    static QList <int> getIndexOfOperators (QVector< QVector<double> > mappedDistances,
                                            double lowerLimit, double upperLimit);
    static double calculateDistance(double x1, double y1, double x2, double y2);
    static double getMaxDistance(QVector< QVector<double> > mappedDistances);
    static double getMinDistance(QVector< QVector<double> > mappedDistances);
    static void imprimeMatriz(QVector< QVector<double> > matrix);
};

#endif // DISTANCES_H
